package com.express.core.mapper;

import com.express.entity.UserOrders;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrdersMapper {

    int save(UserOrders orders);

    Map getTotal(Map map);

    List<UserOrders> getList(Map map);

    UserOrders getOrder(Integer id);

    UserOrders getOrderByOrderNo(String orderNo);

    UserOrders getOrderByAppointNo(String orderNo);

    int update(UserOrders order);

    List<UserOrders> getOrderByIds(int[] ids);
}
